import React from "react";
import { Props } from "./model";
import Service from "./Service";
import style from "./style.module.css";
import { MySteps } from "./styled";
const {Step}=MySteps;
export default class PolicyGuidelines extends Service{

    componentDidMount(){
    }
    render = () => {
        let {guideList}=this.state;
        return (
            <div className={style.PolicyGuidelines}>
               <div className={style.title}>
                    {guideList?.entity.name}
               </div>
               <div className={style.steps}>
                    <MySteps progressDot current={7} direction="vertical" >
                    <Step title="申报对象" description={<div dangerouslySetInnerHTML={{__html:guideList?.entity.reportingObject as string}}></div>} />
                    <Step title="奖励/补助额度" description={<div dangerouslySetInnerHTML={{__html:guideList?.entity.rewardAmount as string}}></div>}/>
                    <Step title="申报材料" description={<div dangerouslySetInnerHTML={{__html:guideList?.entity.applicationMaterials as string}}></div>} />
                    <Step title="受理时间" description={<div dangerouslySetInnerHTML={{__html:guideList?.entity.receptionTime as string}}></div>}/>
                    <Step title="办事流程" description={<div dangerouslySetInnerHTML={{__html:guideList?.entity.workingSchedule as string}}></div>} />
                    <Step title="政府内部流转流程" description={<div dangerouslySetInnerHTML={{__html:guideList?.entity.internalCirculation as string}}></div>} />
                    <Step title="咨询电话" description={<div dangerouslySetInnerHTML={{__html:guideList?.entity.supportHotline as string}}></div>} />
                    {guideList?.entity.cashId !=1 ? <Step title="去申报" description={<div onClick={
                        ()=>{
                            this.props.history.push({
                                pathname:"apply_policy",
                                state:{
                                    policy_id:this.props.history.location.state,
                                }
                            })
                        }
                    } className={style.applyBtn}>立即申报</div>} /> : null}
                    </MySteps>
               </div>
            </div>
        )
    }
}